package edu.bw.service.impl;

import edu.bw.po.Product;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import java.util.List;

@SpringJUnitConfig(locations = "classpath:applicationContext.xml")
class ProductServiceImplTest02 {
    @Autowired
    ProductServiceImpl productService;

    @Test
    void findAllProducts() {
        List<Product> products = productService.findAllProducts();
        for (Product product : products) {
            System.out.println(product);
        }
    }
}